<div class="item mgt18 pdt17 pdb28" style="box-shadow:0 0 1px #000 inset;overflow:hidden;">
  <h1 class="ff_museo700 mgt0 blue txt_indent20">Best Deals
    <div class="fr pdt5 pdr20"><a href="javascript:void(0);" onClick="LeftClick('spnumberofpage','totalpage','boxoutsizebestdetail');" class="fl mgt4 mgr-50" id="arrowleftbestdetails" style="position:relative;z-index:1;"><img src="<?php echo base_url(); ?>public/images/arrow_01.jpg" width="10" height="15" class="fl" /></a><span class="fl gray f18"><span  id="spnumberofpage">1</span>&nbsp;/&nbsp;<span id="totalpage"><?php echo ceil(count($bestdeal)/3); ?></span>&nbsp;</span><a href="javascript:void(0);" onClick="RightClick('spnumberofpage','totalpage','boxoutsizebestdetail','getajax_bestdeal',bestdeal);"><img src="<?php echo base_url(); ?>public/images/arrow_03.png" width="9" height="15" class=" fl mgt4"/></a></div>
  </h1>
  <div class="h247 ov_fl_hidden item pst_relative" id="boxoutsizebestdetail">
  <?php if(count($topbestdeal)>0){
	  	foreach($topbestdeal as $listbestdeal){ ?>
			<div class="fl w269 pdl20"> <img src="<?php echo base_url(); ?>public/images/banner2_03.jpg" width="100%" height="115"/>
      <h3 class="ff_museo700 mgt0 mgb0 blue f18 ov_fl_hidden h22"><?php echo $listbestdeal["title"]; ?></h3>
      <div class="fl pdt1"><?php 	  	
				for($i=1;$i<=intval($listbestdeal["numberstar"]);$i++){ ?>
					<img src="<?php echo base_url(); ?>public/images/star_01.png" width="12" height="11"/>
				<?php }
				if(intval($listbestdeal["numberstar"])<5){
					for($i=1;$i<=5-intval($listbestdeal["numberstar"]);$i++){?>
					<img src="<?php echo base_url(); ?>public/images/hidden-star-05.png" width="12" height="11"/>
					<?php }
				}
		  ?></div>
      &nbsp;<?php echo count($listbestdeal["bestdealreview"]); ?> reviews
      <p class="f11 mgt6 mgb10 h42 ov_fl_hidden" ><?php echo $listbestdeal["description"]; ?></p>
      <div class="item bgr_gray pdt6 pdb6"> <span class="fl blue pdt4 pdl5">Price from</span> <strong class="fl pdl20 orange ff_museo700 f18">US $<?php echo $listbestdeal["price"]; ?></strong> <a class="fr ff_museo500 white bgr_143167 pdt5 pdl6 pdr6 pdb3 mgr5" href="#">DETAILS</a> </div>
    </div>
			<?php }
	  }?>
    
  </div>
</div>
<script>
var bestdeal=Array();
	for(var i=1;i<=1000;i++){		
		bestdeal[i]=false;
	}
	bestdeal[1]=true;
</script>